import request from '@/utils/request'

// 查询碳排放因子数据库列表
export function listCarbonFactorInfo(query) {
  return request({
    url: '/factor/carbonFactorInfo/list',
    method: 'get',
    params: query
  })
}

// 查询碳排放因子数据库详细
export function getCarbonFactorInfo(id) {
  return request({
    url: '/factor/carbonFactorInfo/' + id,
    method: 'get'
  })
}

// 修改碳排放因子数据库
export function saveCarbonFactorInfo(data) {
  return request({
    url: '/factor/carbonFactorInfo',
    method: 'put',
    data: data
  })
}

// 删除碳排放因子数据库
export function delCarbonFactorInfo(id) {
  return request({
    url: '/factor/carbonFactorInfo/' + id,
    method: 'delete'
  })
}
